package com.zabra.zl.ui.entrust.tab.day;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zabra.zl.R;
import com.zabra.zl.utils.BaseUtils;

import java.util.List;

public class AdpTitle extends BaseQuickAdapter<String, BaseViewHolder> {
    public AdpTitle(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, String item) {
        helper.setText(R.id.item_tv_name, BaseUtils.spliteUtils(item, "-")[1])
                .setText(R.id.item_tv_code, BaseUtils.spliteUtils(item, "-")[0]);
    }
}
